import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';

export default class Com extends React.Component { 
	render() {
    return (<div>我是子组件</div>)
  }
}

Com.propTypes = {
  phone:PropTypes.string.isRequired,
  name: PropTypes.string,
  age: PropTypes.number,
  hobbies: PropTypes.array,
  body: PropTypes.shape({
    height: PropTypes.number
  })
}
